Matthew Stafford threw for two touchdowns, including one to Calvin Johnson early in the fourth quarter, and the Detroit Lions beat the San Francisco 49ers 32-17